package com.aqgj.SysArea.bean;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "sys_area")
public class SysArea implements BaseEntity {

    private String id;//ID

    private String pid;//PID

    private String code;//区域代码

    private String name;//地名

    private String fullName;//地址全名

    private Integer orders;//排序

    private String remarks;//备注

    private Integer levels;//级别

    private Integer type;//

    public void setId(String value){
        this.id = value;
    }
    public void setPid(String value){
        this.pid = value;
    }
    public void setCode(String value){
        this.code = value;
    }
    public void setName(String value){
        this.name = value;
    }
    public void setFullName(String value){
        this.fullName = value;
    }
    public void setOrders(Integer value){
        this.orders = value;
    }
    public void setRemarks(String value){
        this.remarks = value;
    }
    public void setLevels(Integer value){
        this.levels = value;
    }
    public void setType(Integer type) {this.type = type;}

    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="ID",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="PID",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getPid(){
        return this.pid;
    }
    @Column(name ="CODE",unique=false,nullable=true,insertable=true,updatable=true,length=30)
    public String getCode(){
        return this.code;
    }
    @Column(name ="NAME",unique=false,nullable=true,insertable=true,updatable=true,length=50)
    public String getName(){
        return this.name;
    }
    @Column(name ="FULL_NAME",unique=false,nullable=true,insertable=true,updatable=true,length=100)
    public String getFullName(){
        return this.fullName;
    }
    @Column(name ="ORDERS",unique=false,nullable=true,insertable=true,updatable=true,length=8)
    public Integer getOrders(){
        return this.orders;
    }
    @Column(name ="REMARKS",unique=false,nullable=true,insertable=true,updatable=true,length=50)
    public String getRemarks(){
        return this.remarks;
    }
    @Column(name ="LEVELS",unique=false,nullable=true,insertable=true,updatable=true,length=8)
    public Integer getLevels(){
        return this.levels;
    }
    @Column(name ="type",unique=false,nullable=true,insertable=true,updatable=true,length=8)
    public Integer getType() { return type; }
}
